package com.xbongbong.workflow.enums;

import lombok.Getter;

/**
 * 工作流触发方式枚举
 * @author 魏荣杰
 *
 */
@Getter
public enum WorkflowTriggerTypeEnum {
    /**
     * 非触发节点
     */
    NOT_TRIGGER(0, "notTrigger", "非触发节点"),
    /**
     * 表单事件触发
     */
    FORM_TRIGGER(1, "FormTrigger", "表单事件触发"),
    /**
     * 时间触发
     */
    TIME_TRIGGER(2, "timeTrigger", "时间触发"),
    /**
     * 时间字段触发
     */
    TIME_FIELD_TRIGGER(3, "timeFieldTrigger", "时间字段触发"),
    /**
     * webhook触发
     */
    WEBHOOK_TRIGGER(4, "webhookTrigger", "webhook触发"),
    /**
     * 员工事件触发
     */
    STAFF_TRIGGER(5, "staffTrigger", "员工事件触发"),
    /**
     * 自定义触发方式
     */
    CUSTOMIZE_TRIGGER(6, "customizeTrigger", "自定义触发方式"),
    ;

    private final Integer type;
    private final String name;
    private final String description;

    WorkflowTriggerTypeEnum(Integer type, String name, String description) {
        this.type = type;
        this.name = name;
        this.description = description;
    }
}
